From 5df01f9244fc669a0fb95e6b7494d31e6ef737da Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 15 Feb 2015 22:26:13 +0100 Subject: [PATCH] widget: Create widget path classes from proper style We don't want to add the current classes to the widget path - which might potentially be different after a gtk_style_context_save() - but the root node's ones. So what better thing to do than actually using the root node? --- gtk/gtkwidget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 935265837a..7460cd256c 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -16328,10 +16328,10 @@ gtk_widget_path_append_for_widget (GtkWidgetPath *path, /* Also add any persistent classes in * the style context the widget path */ - classes = gtk_style_context_list_classes (widget->priv->context); + classes = gtk_css_node_list_classes (widget->priv->cssnode); for (l = classes; l; l = l->next) - gtk_widget_path_iter_add_class (path, pos, l->data); + gtk_widget_path_iter_add_class (path, pos, g_quark_to_string (GPOINTER_TO_UINT (l->data))); g_list_free (classes); } -- 2.30.2